from pydantic import BaseModel
from typing import List, Optional
from datetime import datetime

class UserInfo(BaseModel):
    name: str
    avatar: str

class CommentCreate(BaseModel):
    content: str
    user_id: str
    user_email: str
    user_name: str

class CommentResponse(BaseModel):
    id: str
    content: str
    user: UserInfo
    likes: int
    replies: List['CommentResponse'] = []
    createdAt: str